using FPLibrary;
using UnityEngine;

namespace PathX.Unity
{
    public static class PathUnityExtension
    {
        public static bool Overlaps(this Bounds a, Bounds b) => (double)b.max.x > (double)a.min.x && (double)b.min.x < (double)a.max.x && (double)b.max.z > (double)a.min.z && (double)b.min.z < (double)a.max.z;
        
        public static Position AsPositioned(this FPVector pos)
        {
            return new Position(pos);
        }
    }
}